package com.attack.manager;

import org.springframework.stereotype.Service;

import com.common.manager.BaseManager;
import com.framework.model.IData;
import com.framework.model.impl.DataMap;

/**
 * 客户资料管理服务类
 * @author Administrator
 *
 */
@Service(value = "orderInfoManager")
public class OrderInfoManager extends BaseManager {

	@Override
	public void setSqlMapNameSpace() {
	    
		this.sqlMapNameSpace = "com.attack.manager.model.OrderInfo";

	}
	

	
	public boolean checkContractNum(String contractNum) throws Exception {
			
		IData conditionObj = new DataMap();
		conditionObj.put("contractNum", contractNum);
		Object dataMap = super.getObjectInfo("checkExistsObject",conditionObj);
		if(dataMap!=null){
			return false;
		}
		return true;
	}
	
}
